package com.mfp.java.testYou.db.model;

import java.util.List;

public class TakenTest extends Entity {

	private static final long serialVersionUID = 2483275662014182751L;

	private Integer testId;

	private List<Integer> questionIds;

	private List<AnsweredQuestion> Answers;

	private float result = 0;

	private boolean allowHints = false;

	TakenTest() {

	}

	public final Integer getTestId() {
		return testId;
	}

	public final void setTestId(Integer testId) {
		this.testId = testId;
	}

	public final List<Integer> getQuestionIds() {
		return questionIds;
	}

	public final void setQuestionIds(List<Integer> questionIds) {
		this.questionIds = questionIds;
	}

	public final List<AnsweredQuestion> getAnswers() {
		return Answers;
	}

	public final void setAnswers(List<AnsweredQuestion> answers) {
		Answers = answers;
	}

	public final void setResult(float f) {
		result = f;
	}

	public final float getResult() {
		return result;
	}

	public final Boolean isAllowHints() {
		return allowHints;
	}

	public final void setAllowHints(boolean allowHints) {
		this.allowHints = allowHints;
	}

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getTestId());
		sb.append("  -  ");
		sb.append(isAllowHints() ? "Allowed" : "Not allowed");

		return sb.toString();
	}

}
